import {Injectable, NgZone} from '@angular/core';
import {HttpClient} from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class NacosService {

  apiBase = "http://localhost:10010";
  confiApiBase = "http://localhost:10013";

  constructor(private http: HttpClient, private ngZone: NgZone) { }

  test1(){
    const url = this.apiBase + "/restTemplateTest";
    return this.http.get(url);
  }

  test2(){
    const url = this.apiBase + "/feignTest";
    return this.http.get(url);
  }

  test3(){
    const url = this.confiApiBase + "/test";
    return this.http.get(url)
  }
}
